package oneD.models;

import javax.swing.JFileChooser;

public class t3dviewer {

	public static void main(String[] args) {
		JFileChooser fc = new JFileChooser();
		String filePath = null;
		if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
			filePath = fc.getSelectedFile().getAbsolutePath();
		}
		if (filePath != null) {
			TensegrityStructureViewer model = new TensegrityStructureViewer(filePath);// "c:/tviewer/x48prism1.dat"
			oneD.fem.structure.Tensegrity struct = model.createStructure();
			model.initializeVisualizer(struct);

			model.visualize();
			model.enableVisualize();

			// struct.iterateNewtonRaphson(struct.createZeroU());
			// model.postVisualize();
			// model.enableVisualize();
		}
	}

}
